//
//  TYPlayerLifeSystemFactory.m
//  AngerDragon
//
//  Created by gaotime_macbook_2 on 11-12-11.
//  Copyright 2011 __MyCompanyName__. All rights reserved.
//

#import "TYPlayerLifeSystemFactory.h"
#import "TYPlayerLifeSystem.h"

@implementation TYPlayerLifeSystemFactory
- (id) init {
	
	if ((self = [super init])) {
		CCLOG(@"%@: %@", NSStringFromSelector(_cmd), self);
		
	}
	
	return self;
}

- (void) dealloc {
	CCLOG(@"%@: %@", NSStringFromSelector(_cmd), self);
	
	[super dealloc];
}

#pragma mark 实现工厂方法 的工厂接口
- (id<TYLifeSystemProtocol>)creatLifeSystem {
	id<TYLifeSystemProtocol> a_life_system = [[TYPlayerLifeSystem alloc]init];
	return a_life_system;
}
@end
